var arr  = [1, 5, 3]
var str = new String("hello")
console.log(arr)
console.dir(str)
console.log('-----------------------\n')

/*
for(var v of arr){
	console.log(v)
}

for(var v of str){
	console.log(v)
}


*/

/*
for(var v of Object.values(arr)){
	console.log(v)
}
// 需要高版本浏览器
for(var v of arr.values()){
	console.log(v)
}*/

console.log(arr[Symbol.iterator], typeof arr[Symbol.iterator])
console.log(arr[Symbol.iterator], typeof arr[Symbol.iterator])
console.log(arr[Symbol.iterator]())
console.log(str[Symbol.iterator]())
var iter = arr[Symbol.iterator]();
console.log(iter.next())
console.log(iter.next())


